import os
import ConfigureApache2, ConfigurePostgreSQL, DefaultCOOPGISConfig, DefaultCOOPGISWeb, InstallCommon, InstallOSPackages

CurrentDirectory = os.getcwd() + '/'




#InstallOSPackages.InstallOSPackages()  #Lightly Tested
#InstallOSPackages.PerformDjangoHacks() #Lightly Tested, change this to Monkey Patching [or use shorter class/variable names]?
#ConfigureApache2.DisplayApache2ConfigurationInstructions()
#DefaultCOOPGISWeb.InstallWebFiles()  #Lightly Tested

#ConfigurePostgreSQL.DisplayConfigurePostgreSQLInstructions()
#ConfigurePostgreSQL.DisplayInitialDatabaseCreationInstructions() 




#DefaultCOOPGISConfig.InstallDefaultConfigFiles() #Lightly Tested











#TODO Make visudo unnecessary, use crontab jobs that search for work that needs to be done and does it.
#For now, make the script edit the /usr/local/etc/sudoers file and attempt to append the needed lines to it if they are not already in the file

#Run this manually.
#visudo
#Add the following lines to the end of the file:
#www-data ALL=(ALL) NOPASSWD:ALL
#apachescript ALL=(ALL) NOPASSWD:ALL
#OTHER TASKS:  Create the apachescript user
#END TODO


#TODO Create a separate script for creating the database
#createdb coopgis








